e-shm fixes

1. Use lockf() instead of semaphores
2. Don't fail in e_shm_init() if shm table is corrupted

@bcxcube: What do you think?

// Ola