Improve Analyze()/ GetNextSample() / GetSoundSample() / SetLoopNum() in sceAtrac
Add some missing stubs to threadman.
Give ThreadManForUser_8DAFF657 and friends a name.

Calling allocate on the same thread gives the same ptr, but on a different
one it waits or returns a new ptr.

Let's call it thread local storage for now.
Savestate the sdkver and compiler version.

Oops, should've caught this before.
Basically working implementation of TLS funcs.

But doesn't wait at all, which it should.
Get a chance to toggle linear filtering
Pack the recent close to keep 12 recent items for both small/big screen
Use 12 recent items for both Andriod/iOS & Windows plaform
Make event flags wait / do callbacks correctly.
sceKernelWaitEventFlagCB() calls callbacks first.
Reschedule the timeout event on callback end.

Darn, missed that 3 times before I caught it.
Make sceKernelNotifyCallback() error if invalid cb.

Which makes Numblast clearly happy.
Merge pull request #1287 from unknownbrackets/callbacks

Callback fixes, event flags edition
Merge pull request #1285 from raven02/patch-15

Get a chance to toggle linear filtering in Andriod/iOS
Merge pull request #1286 from unknownbrackets/tls-object

Basic support for the new TLS object functions
Merge pull request #1288 from unknownbrackets/callbacks2

Make sceKernelNotifyCallback() error if invalid cb passed
Respect looping in sceMp3Decode().
Merge pull request #1289 from unknownbrackets/mp3-fix

Respect looping in sceMp3Decode()
Merge pull request #1263 from raven02/patch-10

Improve bunch of functions in sceAtrac
Add remaining 6 savedata type functions