NBA lockout begins as sides fail to reach deal